package com.zj.sqlSession;

import com.zj.utils.Configuration;

import java.sql.Connection;
import java.util.List;

public interface SqlSession {

    int insert(String statement);

    int insert(String statement, Object parameter);

    int update(String statement);

    int update(String statement, Object parameter);

    int delete(String statement);

    int delete(String statement, Object parameter);

    <E> List<E> selectList(String statement, Object parameter);

    <T> T selectOne(String statement, Object parameter);

    void commit();

    void commit(boolean var1);

    void rollback();

    void rollback(boolean var1);

    void close();

    Configuration getConfiguration();

    <T> T getMapper(Class<T> var1);

    Connection getConnection();
}
